home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 719 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. From: Paul Russell aka Rusty <Rusty.Russell@adelaide.maptek.com.au>
  2. Message-ID: <199603141622.QAA13030@young.adelaide.maptek.com.au>
  3. X-Original-Date: Fri, 15 Mar 1996 02:52:38 +1030
  4. Path: in2.uu.net!bounce-back
  5. Date: 14 Mar 96 16:48:47 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Organization: -
  8. Newsgroups: comp.std.c++
  9. X-Authentication-Warning: young.adelaide.maptek.com.au: rusty owned process doing -bs
  10. Subject: Clarification on DWP...
  11. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  12.     iQBFAgUBMUhOGeEDnX0m9pzZAQEPowF+L62DdU2wfKOpwBl08ulxVw5bIOYXJRUr
  13.     CkQMguI/T52cnnM9TLAAjrvVgazKjIK1
  14.     =arkc
  15.  
  16. The April DWP, 9.2 paragraph 12:
  17.  
  18. 12A  static  data  member,  enumerator, member of an anonymous union, or
  19.   nested type shall not have the same name as its class.
  20.  
  21. Does this mean immediately nested?  Or nested at all? ie. Is this code
  22. legal?
  23.  
  24. struct A
  25. {
  26.   struct B
  27.   {
  28.     struct A {};
  29.   };
  30. };
  31.  
  32. Also, is there a similar restriction on namespaces?  I couldn't find it
  33. anywhere...
  34.  
  35. TIA,
  36. Rusty.
  37. --
  38. Rusty.Russell@adelaide.maptek.com.au           "Engineer? So you drive trains?"
  39.  
  40. Lies, damned lies, and out-of-date documentation.        #include <stddisclm.h>
  41.  
  42. ---
  43. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  44. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  45. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  46. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  47. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  48.